using System.Collections.Generic;
using System.Xml.Serialization;

namespace Opo.Perspective.Core
{
    /// <summary>
    /// Represents a collection of <see cref="ITag">ITag</see>s
    /// </summary>
    [XmlRoot("tags")]
    public class TagCollection : List<Tag>
    {
        /// <summary>
        /// Adds a Tag with the specified tag name to the collection.
        /// </summary>
        /// <param name="tagName">Name of the tag.</param>
        public void Add(string tagName)
        {
            this.Add(new Tag(tagName));
        }
    }
}
